﻿import smtplib
from email.MIMEText import MIMEText

def sendconfirm(mail,subj,text):
	
	me = 'i-gor-ka@mail.ru'
	you = mail

	server = "smtp.mail.ru"
	port = 2525
	user_name = "i-gor-ka"
	user_passwd = "passwd"

	msg = MIMEText(text, "plain", "utf-8")
	msg['Subject'] = subj
	msg['From'] = me
	msg['To'] = you

	s = smtplib.SMTP(server, port)
	s.starttls()
	s.login(user_name, user_passwd)
	s.sendmail(me, you, msg.as_string())
	s.quit()
